package cn.com.clearboot.controller;

import cn.com.clearboot.service.TokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {

    @Autowired
    TokenService tokenService;

    @GetMapping(value = "/name")
    public String name() {
        return tokenService.getToken();
    }
}
